-- GENERATED SPELL FOR [Battle-Priest Eliza] --


function spell0_32948(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(63499,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32948', 604, 1)
end

function spell1_32948(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(62809,pUnit)
pUnit:RegisterEvent('Sorts_32948', 1500, 1)
end

function spell2_32948(pUnit, Event) --@Smite,n/a--
pUnit:FullCastSpellOnTarget(61923,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32948', 2000, 1)
end

function Sorts_32948(pUnit, Event)
local choix_sorts_32948 = math.random(0, 2)
if choix_sorts_32948 == 0 then
pUnit:RegisterEvent('spell0_32948', 1, 1)
end
if choix_sorts_32948 == 1 then
pUnit:RegisterEvent('spell1_32948', 1, 1)
end
if choix_sorts_32948 == 2 then
pUnit:RegisterEvent('spell2_32948', 1, 1)
end
end

function mob32948_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32948', math.random(1500, 3000), 1)
end

function mob32948_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32948_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32948_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32948, 1, 'mob32948_Action')
RegisterUnitEvent(32948, 2, 'mob32948_Leave')
RegisterUnitEvent(32948, 3, 'mob32948_Kill')
RegisterUnitEvent(32948, 4, 'mob32948_Die')
